package com.wxdc.nmgyt.nmgytwydc.model;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.ToMany;

import java.io.Serializable;
import java.util.List;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.DaoException;
import com.wxdc.nmgyt.nmgytwydc.greendao.DaoSession;
import com.wxdc.nmgyt.nmgytwydc.greendao.PdYfWzInfoBeanDao;
import com.wxdc.nmgyt.nmgytwydc.greendao.PdYfInfoBeanDao;

/**
 * Created by Administrator on 2018/7/20.
 */
@Entity
public class PdYfInfoBean implements Serializable{

    private static final long serialVersionUID = -8478960753642769218L;
    @Id(autoincrement = true)
    private Long id; //@Id表示该字段是id，注意该字段的数据类型为包装类型Long
    /**
     * GRASSID : PD-150124-006-201801-0027
     * YFMJ : 0.0
     * ZGD : 0.0
     * PJGD : 0.0
     * ZBLXDM : 0 1
     * ZBLXMC : 草甸草 原
     * ZWQL :
     * LYFSDM :
     * LYFSMC :
     * LYQDDM :
     * LYQDMC :
     * XZDM : 150 124-006
     * XZMC : 清水河 县
     * CJDATA : 2018-01-11T00:00:00
     * JLR :
     * VERSION : 1
     * FREQUENCYWZ :
     */
    private String GRASSID;
    private String YFMJ;
    private String ZGD;
    private String PJGD;
    private String ZBLXDM;
    private String ZBLXMC;
    private String ZWQL;
    private String LYFSDM;
    private String LYFSMC;
    private String LYQDDM;
    private String LYQDMC;
    private String XZDM;
    private String XZMC;
    private String CJDATA;
    private String JLR;
    private String VERSION;
    //此处的cbyfInfoId是在CbYfWzInfoBean中定义的一个变量（请看CbYfWzInfoBean.java）
    @ToMany(referencedJoinProperty = "pdyfInfoId")
    private List<PdYfWzInfoBean> FREQUENCYWZ;
    /** Used to resolve relations */
    @Generated(hash = 2040040024)
    private transient DaoSession daoSession;
    /** Used for active entity operations. */
    @Generated(hash = 426675898)
    private transient PdYfInfoBeanDao myDao;
    @Generated(hash = 511455657)
    public PdYfInfoBean(Long id, String GRASSID, String YFMJ, String ZGD,
            String PJGD, String ZBLXDM, String ZBLXMC, String ZWQL, String LYFSDM,
            String LYFSMC, String LYQDDM, String LYQDMC, String XZDM, String XZMC,
            String CJDATA, String JLR, String VERSION) {
        this.id = id;
        this.GRASSID = GRASSID;
        this.YFMJ = YFMJ;
        this.ZGD = ZGD;
        this.PJGD = PJGD;
        this.ZBLXDM = ZBLXDM;
        this.ZBLXMC = ZBLXMC;
        this.ZWQL = ZWQL;
        this.LYFSDM = LYFSDM;
        this.LYFSMC = LYFSMC;
        this.LYQDDM = LYQDDM;
        this.LYQDMC = LYQDMC;
        this.XZDM = XZDM;
        this.XZMC = XZMC;
        this.CJDATA = CJDATA;
        this.JLR = JLR;
        this.VERSION = VERSION;
    }
    @Generated(hash = 1107617340)
    public PdYfInfoBean() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getGRASSID() {
        return this.GRASSID;
    }
    public void setGRASSID(String GRASSID) {
        this.GRASSID = GRASSID;
    }
    public String getYFMJ() {
        return this.YFMJ;
    }
    public void setYFMJ(String YFMJ) {
        this.YFMJ = YFMJ;
    }
    public String getZGD() {
        return this.ZGD;
    }
    public void setZGD(String ZGD) {
        this.ZGD = ZGD;
    }
    public String getPJGD() {
        return this.PJGD;
    }
    public void setPJGD(String PJGD) {
        this.PJGD = PJGD;
    }
    public String getZBLXDM() {
        return this.ZBLXDM;
    }
    public void setZBLXDM(String ZBLXDM) {
        this.ZBLXDM = ZBLXDM;
    }
    public String getZBLXMC() {
        return this.ZBLXMC;
    }
    public void setZBLXMC(String ZBLXMC) {
        this.ZBLXMC = ZBLXMC;
    }
    public String getZWQL() {
        return this.ZWQL;
    }
    public void setZWQL(String ZWQL) {
        this.ZWQL = ZWQL;
    }
    public String getLYFSDM() {
        return this.LYFSDM;
    }
    public void setLYFSDM(String LYFSDM) {
        this.LYFSDM = LYFSDM;
    }
    public String getLYFSMC() {
        return this.LYFSMC;
    }
    public void setLYFSMC(String LYFSMC) {
        this.LYFSMC = LYFSMC;
    }
    public String getLYQDDM() {
        return this.LYQDDM;
    }
    public void setLYQDDM(String LYQDDM) {
        this.LYQDDM = LYQDDM;
    }
    public String getLYQDMC() {
        return this.LYQDMC;
    }
    public void setLYQDMC(String LYQDMC) {
        this.LYQDMC = LYQDMC;
    }
    public String getXZDM() {
        return this.XZDM;
    }
    public void setXZDM(String XZDM) {
        this.XZDM = XZDM;
    }
    public String getXZMC() {
        return this.XZMC;
    }
    public void setXZMC(String XZMC) {
        this.XZMC = XZMC;
    }
    public String getCJDATA() {
        return this.CJDATA;
    }
    public void setCJDATA(String CJDATA) {
        this.CJDATA = CJDATA;
    }
    public String getJLR() {
        return this.JLR;
    }
    public void setJLR(String JLR) {
        this.JLR = JLR;
    }
    public String getVERSION() {
        return this.VERSION;
    }
    public void setVERSION(String VERSION) {
        this.VERSION = VERSION;
    }
    /**
     * To-many relationship, resolved on first access (and after reset).
     * Changes to to-many relations are not persisted, make changes to the target entity.
     */
    @Generated(hash = 1825936015)
    public List<PdYfWzInfoBean> getFREQUENCYWZ() {
        if (FREQUENCYWZ == null) {
            final DaoSession daoSession = this.daoSession;
            if (daoSession == null) {
                throw new DaoException("Entity is detached from DAO context");
            }
            PdYfWzInfoBeanDao targetDao = daoSession.getPdYfWzInfoBeanDao();
            List<PdYfWzInfoBean> FREQUENCYWZNew = targetDao
                    ._queryPdYfInfoBean_FREQUENCYWZ(id);
            synchronized (this) {
                if (FREQUENCYWZ == null) {
                    FREQUENCYWZ = FREQUENCYWZNew;
                }
            }
        }
        return FREQUENCYWZ;
    }
    /** Resets a to-many relationship, making the next get call to query for a fresh result. */
    @Generated(hash = 784407799)
    public synchronized void resetFREQUENCYWZ() {
        FREQUENCYWZ = null;
    }
    /**
     * Convenient call for {@link org.greenrobot.greendao.AbstractDao#delete(Object)}.
     * Entity must attached to an entity context.
     */
    @Generated(hash = 128553479)
    public void delete() {
        if (myDao == null) {
            throw new DaoException("Entity is detached from DAO context");
        }
        myDao.delete(this);
    }
    /**
     * Convenient call for {@link org.greenrobot.greendao.AbstractDao#refresh(Object)}.
     * Entity must attached to an entity context.
     */
    @Generated(hash = 1942392019)
    public void refresh() {
        if (myDao == null) {
            throw new DaoException("Entity is detached from DAO context");
        }
        myDao.refresh(this);
    }
    /**
     * Convenient call for {@link org.greenrobot.greendao.AbstractDao#update(Object)}.
     * Entity must attached to an entity context.
     */
    @Generated(hash = 713229351)
    public void update() {
        if (myDao == null) {
            throw new DaoException("Entity is detached from DAO context");
        }
        myDao.update(this);
    }
    /** called by internal mechanisms, do not call yourself. */
    @Generated(hash = 209608856)
    public void __setDaoSession(DaoSession daoSession) {
        this.daoSession = daoSession;
        myDao = daoSession != null ? daoSession.getPdYfInfoBeanDao() : null;
    }

}
